﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.ComponentModel.DataAnnotations.Schema;
using System.ComponentModel.DataAnnotations;

namespace E_Commerce.Domain.Dto
{
    /// <summary>
    /// 秒杀视图模型
    /// </summary>
   public class SeckillDto
    {
        [Key]
        public int SeckId { get; set; }
        /// <summary>
        /// 开始时间
        /// </summary>
        public DateTime StartTime { get; set; }
        /// <summary>
        /// 结束时间
        /// </summary>
        public DateTime EndTime { get; set; }
        /// <summary>
        /// 秒杀价格
        /// </summary>
        public decimal SecPrice { get; set; }
        /// <summary>
        /// 添加时间
        /// </summary>
        public DateTime createTime { get; set; }
        /// <summary>
        /// 秒杀商品数
        /// </summary>
        public int SeckillNum { get; set; }
        /// <summary>
        /// 剩余库存数
        /// </summary>
        public int RemainingNum { get; set; }
        /// <summary>
        /// skuID 商品规格表
        /// </summary>
        public int SpeciId { get; set; }
        /// <summary>
        /// spuID 商品分类表
        /// </summary>
        public int CateId { get; set; }
        /// <summary>
        /// 秒杀状态
        /// </summary>
        public int SeckStatic { get; set; }
        public int ProductId { get; set; }
        /// <summary>
        /// 商品名称
        /// </summary>
        [StringLength(100)]
        public string ProName { get; set; }
        /// <summary>
        /// 原价格
        /// </summary>
        public decimal Price { get; set; }
        /// <summary>
        /// 图片
        /// </summary>
        public string PicUrl { get; set; }

    }
}
